home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / pix / trace / wirecube2.lha / WireCube.pov < prev    next >
Text File  |  1992-08-02  |  1KB  |  61 lines

  1. #include "colors.inc"
  2. #include "shapes.inc"
  3. #include "textures.inc"
  4. #include "stones.inc"
  5.  
  6. camera {
  7.   location  < 0.8 1.5 -5 >
  8.   direction < 0 0 1.5 >
  9.   up        < 0 1 0 >
  10.   right     < 1.33 0 0 >
  11.   look_at   < 0 1.2 0 >
  12. }
  13.  
  14. /* Gold metal sphere placed inside
  15.    the wire cube for effect.        */
  16.  
  17. object {
  18.   sphere { < 0 1.2 0 > 0.8 }
  19.   texture { Gold_Metal }
  20. }
  21.  
  22. /* Marblized wire cube I'm famous
  23.    for drawing.  Just made from some
  24.    CSG boxes.                        */
  25.  
  26. object {
  27.   difference {
  28.     box { < -1.2 0 -1.2 > < 1.2 2.4 1.2> }
  29.     box { < -1 0.2 -2 > < 1 2.2 2 > }
  30.     box { < -2 0.2 -1 > < 2 2.2 1 > }
  31.     box { < -1 -1 -1 > < 1 3 1 > }
  32.   }
  33.   texture { Stone21 }
  34. }
  35.  
  36. /* A simple gray coloured floor.  The
  37.    wire cube sits on the floor.        */
  38.  
  39. object {
  40.   plane { < 0 1 0 > 0 }
  41.   texture { colour red 0.8 green 0.8 blue 0.8 }
  42. }
  43.  
  44. /* This is a cloudy sky borrowed from
  45.    'pool.pov' provided as a sample scene. */
  46.  
  47. object {
  48.    sphere { <0.0 -10000.0 -200.0> 15000.0 }
  49.    texture {
  50.       0.05
  51.       Bright_Blue_Sky
  52.       scale <7500.0 1000.0 5000.0>
  53.       ambient 0.7
  54.       diffuse 0.0
  55.    }
  56.    colour red 0.5 green 0.5 blue 1.0
  57. }
  58.  
  59. object { light_source { < 5 8 -6 > colour White } }
  60.  
  61.